package com.itheima.mongo.repository;

import com.itheima.mongo.pojo.ApAssociateWords;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 代表此视这个类，存在了很多的功能
 *
 *   extends MongoRepository<ApAssociateWords,String> = mybatisplus baesMapper<>   </>
 */
@Repository
public interface ApAssociateRepository extends MongoRepository<ApAssociateWords,String> {

    /**
     * 根据ID和联想词多条件查询
     */
    Page<ApAssociateWords> findByIdAndAndAssociateWords(String id , String associateWords, Pageable pageable);




}
